
# -*- encoding=utf8 -*-
__author__ = "fq"

from airtest.core.api import *

auto_setup(__file__)



#1-1

if   exists(Template(r"tpl1646093848440.png", record_pos=(0.401, -0.229), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1646093848440.png", record_pos=(0.401, -0.229), resolution=(2160, 1080)))
      sleep(3)

    
      touch(Template(r"tpl1646181780021.png", record_pos=(0.414, 0.169), resolution=(2160, 1080)))

      sleep(3)
      touch(Template(r"tpl1646094258117.png", record_pos=(0.319, 0.168), resolution=(2160, 1080)))
      sleep(3)
      touch(Template(r"tpl1646094303864.png", record_pos=(0.127, 0.098), resolution=(2160, 1080)))
      sleep(30)
      touch(Template(r"tpl1646094364976.png", record_pos=(0.248, 0.175), resolution=(2160, 1080)))
      sleep(3)
      touch(Template(r"tpl1646094395842.png", record_pos=(0.131, 0.081), resolution=(2160, 1080)))
      sleep(20)
        
      touch(Template(r"tpl1646093848440.png", record_pos=(0.401, -0.229), resolution=(2160, 1080)))
      sleep(3)

    
      touch(Template(r"tpl1646182681987.png", record_pos=(0.084, 0.081), resolution=(2160, 1080)))
        
        
      sleep(3)

      touch(Template(r"tpl1646093848440.png", record_pos=(0.401, -0.229), resolution=(2160, 1080)))

      sleep(3)

else :

      sleep(1.0)

        
if  exists(Template(r"tpl1646182681987.png", record_pos=(0.084, 0.081), resolution=(2160, 1080))):
       
       touch(Template(r"tpl1646182681987.png", record_pos=(0.084, 0.081), resolution=(2160, 1080)))
else :

      sleep(1.0)

sleep(5)

wait(Template(r"tpl1645604895395.png", record_pos=(0.403, -0.028), resolution=(2160, 1080)))
touch((850,240))
sleep(3)

touch((500,460))
sleep(3)


touch(Template(r"tpl1645604916275.png", record_pos=(0.407, 0.21), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645604923694.png", record_pos=(0.344, 0.183), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645604930603.png", record_pos=(0.18, -0.11), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645604937002.png", threshold=0.75, record_pos=(-0.008, 0.175), resolution=(2160, 1080)))
sleep(3)

#点击第一魂技

touch((112,157))
sleep(3)

touch(Template(r"tpl1645604951187.png", record_pos=(0.013, -0.041), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645604956849.png", record_pos=(0.448, -0.22), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645604964372.png", record_pos=(-0.001, -0.008), resolution=(2160, 1080)))
sleep(6)

touch((768,402))
sleep(10)

touch(Template(r"tpl1645604992139.png", record_pos=(0.295, 0.041), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645605019637.png", record_pos=(0.344, 0.112), resolution=(2160, 1080)))
sleep(3)

touch((800,380))
sleep(3)

wait(Template(r"tpl1645605033578.png", record_pos=(0.41, -0.224), resolution=(2160, 1080)))

touch(Template(r"tpl1645605033578.png", record_pos=(0.41, -0.224), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645605054357.png", record_pos=(0.426, 0.032), resolution=(2160, 1080)))
sleep(3)

touch((471,295))
sleep(3)


touch(Template(r"tpl1645605061052.png", record_pos=(0.09, 0.077), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645605077379.png", record_pos=(0.245, 0.121), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645605085955.png", record_pos=(0.181, 0.095), resolution=(2160, 1080)))
sleep(3)


touch((500,430))
sleep(3)

touch(Template(r"tpl1645605096155.png", record_pos=(-0.006, 0.158), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1649050109350.png", record_pos=(0.228, 0.145), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1645605107594.png", record_pos=(0.007, -0.086), resolution=(2160, 1080)))
sleep(3)



touch(Template(r"tpl1645605115615.png", record_pos=(0.319, 0.177), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645605128595.png", record_pos=(-0.0, -0.086), resolution=(2160, 1080)))
sleep(8)

touch((480,187))
sleep(6)

wait(Template(r"tpl1645605167261.png", record_pos=(0.41, -0.227), resolution=(2160, 1080)))
touch((850,20))
sleep(3)

touch(Template(r"tpl1645605179555.png", record_pos=(0.096, 0.08), resolution=(2160, 1080)))
sleep(3)



touch(Template(r"tpl1645605196172.png", record_pos=(0.246, 0.119), resolution=(2160, 1080)))
sleep(15)



touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))
sleep(3)
touch((870,450))
sleep(3)
touch(Template(r"tpl1645605218019.png", record_pos=(0.005, -0.078), resolution=(2160, 1080)))
sleep(5)

touch(Template(r"tpl1645605218019.png", record_pos=(0.005, -0.078), resolution=(2160, 1080)))
sleep(11)

touch((500,460))
sleep(3)

touch(Template(r"tpl1645605260733.png", record_pos=(0.408, -0.227), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645605269571.png", record_pos=(0.102, 0.092), resolution=(2160, 1080)))
sleep(4)


touch(Template(r"tpl1645605303019.png", record_pos=(0.398, -0.028), resolution=(2160, 1080)))
sleep(3)

touch((500,460))
sleep(3)

touch((800,500))
sleep(3)

swipe(Template(r"tpl1645605338161.png", record_pos=(-0.313, 0.186), resolution=(2160, 1080)), vector=[0.2521, -0.4356])
sleep(4)

touch(Template(r"tpl1645605382580.png", record_pos=(0.443, -0.221), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645605389571.png", record_pos=(0.396, -0.032), resolution=(2160, 1080)))
sleep(10)


touch(Template(r"tpl1649126127322.png", record_pos=(0.468, 0.145), resolution=(2340, 1080)))
sleep(3)
touch(Template(r"tpl1649144076668.png", record_pos=(0.155, -0.003), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649119669778.png", record_pos=(0.268, 0.095), resolution=(2340, 1080)))

sleep(5)


touch((875,400))
sleep(3)

sleep(5)
touch((479,130))
sleep(10)

touch((479,130))
sleep(3)

touch(Template(r"tpl1645605449956.png", record_pos=(0.313, 0.176), resolution=(2160, 1080)))
touch((479,130))



sleep(3)

touch((479,130))
sleep(3)

touch((479,130))
sleep(3)

touch((479,130))



sleep(22)


#点击屏幕继续
touch((475,484))

sleep(3)


touch(Template(r"tpl1645605512140.png", record_pos=(0.389, -0.022), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645605518292.png", record_pos=(0.412, 0.212), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645605525156.png", record_pos=(-0.294, -0.09), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645605531188.png", record_pos=(0.329, 0.176), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645605537531.png", record_pos=(0.187, -0.125), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645605543917.png", record_pos=(-0.006, 0.175), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645605551284.png", record_pos=(-0.39, -0.12), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645605558580.png", record_pos=(0.008, -0.036), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1646039661342.png", record_pos=(0.439, -0.222), resolution=(2160, 1080)))
sleep(3)

touch((860,240))
sleep(3)





#1-2

wait(Template(r"tpl1645579131609.png", record_pos=(0.385, -0.031), resolution=(2160, 1080)))
touch(Template(r"tpl1645579131609.png", record_pos=(0.385, -0.031), resolution=(2160, 1080)))

wait(Template(r"tpl1645579177389.png", record_pos=(0.294, 0.104), resolution=(2160, 1080)))
touch(Template(r"tpl1645579177389.png", record_pos=(0.294, 0.104), resolution=(2160, 1080)))

wait(Template(r"tpl1645579257047.png", record_pos=(0.109, 0.097), resolution=(2160, 1080)))
touch(Template(r"tpl1645579257047.png", record_pos=(0.109, 0.097), resolution=(2160, 1080)))

wait(Template(r"tpl1645579285501.png", record_pos=(0.336, 0.112), resolution=(2160, 1080)))
touch(Template(r"tpl1645579285501.png", record_pos=(0.336, 0.112), resolution=(2160, 1080)))

sleep(7)

touch(Template(r"tpl1645694563124.png", record_pos=(0.404, -0.234), resolution=(2160, 1080)))

sleep(6)

touch((860,300))
sleep(3)



wait(Template(r"tpl1645605931093.png", record_pos=(0.007, -0.01), resolution=(2160, 1080)))
touch(Template(r"tpl1645605936476.png", record_pos=(0.0, -0.013), resolution=(2160, 1080)))




wait(Template(r"tpl1645579448423.png", record_pos=(0.405, 0.156), resolution=(2160, 1080)))
touch(Template(r"tpl1645579448423.png", record_pos=(0.405, 0.156), resolution=(2160, 1080)))

sleep(4)

touch((353,218))

sleep(3)

touch((604,215))

sleep(6)


touch((779,474))

sleep(1)

touch((479,210))

sleep(5)

touch((779,474))

sleep(3)

touch((479,210))
sleep(3)

touch((479,210),times=20)
sleep(7)

touch(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645864752198.png", record_pos=(0.414, 0.028), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645864797389.png", record_pos=(0.006, -0.058), resolution=(2160, 1080)))
sleep(6)


touch((870,450))
sleep(3)

touch(Template(r"tpl1645864873194.png", threshold=0.9000000000000001, record_pos=(-0.134, -0.056), resolution=(2160, 1080)))
sleep(4)




touch(Template(r"tpl1645847856287.png", threshold=0.9000000000000001, record_pos=(0.134, -0.056), resolution=(2160, 1080)))
sleep(4)

touch(Template(r"tpl1645847902645.png", record_pos=(0.32, 0.181), resolution=(2160, 1080)))
sleep(3)

touch((779,474))
sleep(3)

touch((504,146))
sleep(15)


touch((779,474))
sleep(3)


touch((504,146))
sleep(3)

touch((504,146))
sleep(3)

touch((504,146))
sleep(3)

touch((504,146))
sleep(3)

touch((504,146))
sleep(3)

touch((504,146))
sleep(3)

touch((504,146))
sleep(3)

touch((504,146))
sleep(3)

touch((504,146))
sleep(3)

touch((504,146))
sleep(3)

touch((504,146))
sleep(3)

touch(Template(r"tpl1645694563124.png", record_pos=(0.404, -0.234), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645607970638.png", record_pos=(0.115, 0.097), resolution=(2160, 1080)))
sleep(12)




touch((850,240))
sleep(3)

touch((500,460))
sleep(3)


wait(Template(r"tpl1645592950771.png", record_pos=(0.214, 0.103), resolution=(2160, 1080)))
touch(Template(r"tpl1645592959489.png", record_pos=(0.347, 0.219), resolution=(2160, 1080)))
sleep(4)


swipe(Template(r"tpl1645608094547.png", record_pos=(-0.204, 0.172), resolution=(2160, 1080)), vector=[0.3607, -0.3738])
sleep(4)


touch(Template(r"tpl1645593017729.png", record_pos=(0.437, -0.219), resolution=(2160, 1080)))

sleep(6)


touch((858,242))

sleep(3)


wait(Template(r"tpl1645593119162.png", record_pos=(0.237, 0.011), resolution=(2160, 1080)))
touch(Template(r"tpl1645593126161.png", record_pos=(0.398, 0.015), resolution=(2160, 1080)))
sleep(3)
wait(Template(r"tpl1645593148873.png", record_pos=(0.406, 0.12), resolution=(2160, 1080)))
touch(Template(r"tpl1645593148873.png", record_pos=(0.406, 0.12), resolution=(2160, 1080)))

wait(Template(r"tpl1645593181010.png", record_pos=(0.398, -0.171), resolution=(2160, 1080)))
touch(Template(r"tpl1645593186783.png", record_pos=(0.405, -0.221), resolution=(2160, 1080)))
sleep(44)


#点击屏幕继续
touch((475,484))
sleep(6)


touch((850,280))
sleep(3)


wait(Template(r"tpl1645593326947.png", record_pos=(0.25, 0.125), resolution=(2160, 1080)))
touch(Template(r"tpl1645593342258.png", record_pos=(0.413, 0.214), resolution=(2160, 1080)))

wait(Template(r"tpl1645593367201.png", record_pos=(-0.182, -0.084), resolution=(2160, 1080)))
touch(Template(r"tpl1645593367201.png", record_pos=(-0.182, -0.084), resolution=(2160, 1080)))

wait(Template(r"tpl1645593395706.png", record_pos=(0.325, 0.154), resolution=(2160, 1080)))
touch(Template(r"tpl1645593395706.png", record_pos=(0.325, 0.154), resolution=(2160, 1080)))

wait(Template(r"tpl1645593432842.png", record_pos=(0.181, -0.121), resolution=(2160, 1080)))
touch(Template(r"tpl1645593432842.png", record_pos=(0.181, -0.121), resolution=(2160, 1080)))

wait(Template(r"tpl1645593459810.png", record_pos=(-0.005, 0.173), resolution=(2160, 1080)))
touch(Template(r"tpl1645593459810.png", record_pos=(-0.005, 0.173), resolution=(2160, 1080)))
sleep(3)



wait(Template(r"tpl1645593495387.png", record_pos=(-0.397, -0.12), resolution=(2160, 1080)))
touch(Template(r"tpl1645593495387.png", record_pos=(-0.397, -0.12), resolution=(2160, 1080)))

wait(Template(r"tpl1645593520794.png", record_pos=(0.007, -0.043), resolution=(2160, 1080)))
touch(Template(r"tpl1645593520794.png", record_pos=(0.007, -0.043), resolution=(2160, 1080)))

wait(Template(r"tpl1645593547626.png", record_pos=(0.447, -0.215), resolution=(2160, 1080)))
touch(Template(r"tpl1645593547626.png", record_pos=(0.447, -0.215), resolution=(2160, 1080)))
sleep(6)




touch((850,280))
sleep(3)




#1-3

wait(Template(r"tpl1645593620867.png", record_pos=(0.388, -0.026), resolution=(2160, 1080)))
touch(Template(r"tpl1645593620867.png", record_pos=(0.388, -0.026), resolution=(2160, 1080)))

wait(Template(r"tpl1645593668202.png", record_pos=(0.292, 0.106), resolution=(2160, 1080)))
touch(Template(r"tpl1645593668202.png", record_pos=(0.292, 0.106), resolution=(2160, 1080)))

wait(Template(r"tpl1645593696658.png", record_pos=(-0.062, 0.024), resolution=(2160, 1080)))
touch(Template(r"tpl1645593696658.png", record_pos=(-0.062, 0.024), resolution=(2160, 1080)))

sleep(8)




touch(Template(r"tpl1645593723058.png", record_pos=(0.339, 0.112), resolution=(2160, 1080)))


wait(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))
touch(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))


wait(Template(r"tpl1645593791627.png", record_pos=(0.418, 0.027), resolution=(2160, 1080)))
touch(Template(r"tpl1645593791627.png", record_pos=(0.418, 0.027), resolution=(2160, 1080)))

wait(Template(r"tpl1645593831017.png", record_pos=(-0.001, -0.068), resolution=(2160, 1080)))
touch(Template(r"tpl1645593831017.png", record_pos=(-0.001, -0.068), resolution=(2160, 1080)))
sleep(3)


wait(Template(r"tpl1645593858386.png", record_pos=(0.408, 0.151), resolution=(2160, 1080)))

sleep(3)

touch(Template(r"tpl1645593858386.png", record_pos=(0.408, 0.151), resolution=(2160, 1080)))
sleep(3)



wait(Template(r"tpl1645593918700.png", record_pos=(0.002, -0.082), resolution=(2160, 1080)))
touch(Template(r"tpl1645593918700.png", record_pos=(0.002, -0.082), resolution=(2160, 1080)))


sleep(4)


touch(Template(r"tpl1645593918700.png", record_pos=(0.002, -0.082), resolution=(2160, 1080)))


sleep(4)


touch(Template(r"tpl1645593918700.png", record_pos=(0.002, -0.082), resolution=(2160, 1080)))
sleep(1.0)


wait(Template(r"tpl1645593990506.png", record_pos=(0.317, 0.177), resolution=(2160, 1080)))
touch(Template(r"tpl1645593990506.png", record_pos=(0.317, 0.177), resolution=(2160, 1080)))

wait(Template(r"tpl1645594018504.png", record_pos=(0.003, -0.079), resolution=(2160, 1080)))
touch(Template(r"tpl1645594018504.png", record_pos=(0.003, -0.079), resolution=(2160, 1080)))

wait(Template(r"tpl1645594042714.png", record_pos=(0.318, 0.176), resolution=(2160, 1080)))
touch(Template(r"tpl1645594042714.png", record_pos=(0.318, 0.176), resolution=(2160, 1080)))

wait(Template(r"tpl1645594068419.png", record_pos=(0.005, -0.068), resolution=(2160, 1080)))
touch(Template(r"tpl1645594068419.png", record_pos=(0.005, -0.068), resolution=(2160, 1080)))
sleep(10)

wait(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))
touch(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))

wait(Template(r"tpl1645593858386.png", record_pos=(0.408, 0.151), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645593858386.png", record_pos=(0.408, 0.151), resolution=(2160, 1080)))
sleep(3)


touch((483,192))

sleep(3)

touch((483,192))

sleep(6)

touch((483,192))

sleep(10)

touch((779,474))
sleep(1)
touch((483,192))

sleep(5)

touch((779,474))
sleep(1)
touch((483,192))


sleep(16)

touch((483,192))
sleep(5)

touch((483,192))
sleep(5)

touch((483,192))
sleep(5)


touch((549,188))
sleep(5)


touch((549,188))
sleep(5)

touch((549,188))
sleep(5)


touch((414,183))
sleep(3)

touch((414,183))
sleep(3)

touch((414,183))
sleep(3)





wait(Template(r"tpl1645694563124.png", record_pos=(0.404, -0.234), resolution=(2160, 1080)),timeout=30)
    

touch(Template(r"tpl1645694563124.png", record_pos=(0.404, -0.234), resolution=(2160, 1080)))

sleep(1.0)




sleep(3)


#1-4
sleep(6)

wait(Template(r"tpl1645594625051.png", record_pos=(-0.303, -0.008), resolution=(2160, 1080)))
touch(Template(r"tpl1645594625051.png", record_pos=(-0.303, -0.008), resolution=(2160, 1080)))

sleep(2)
touch(Template(r"tpl1645665611267.png", record_pos=(0.333, 0.106), resolution=(2160, 1080)))




wait(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))
touch(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))

wait(Template(r"tpl1645593858386.png", record_pos=(0.408, 0.151), resolution=(2160, 1080)))
touch(Template(r"tpl1645593858386.png", record_pos=(0.408, 0.151), resolution=(2160, 1080)))

sleep(3)

touch(Template(r"tpl1645594719755.png", record_pos=(-0.001, -0.074), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645594719755.png", record_pos=(-0.001, -0.074), resolution=(2160, 1080)))
sleep(4)
touch(Template(r"tpl1645594719755.png", record_pos=(-0.001, -0.074), resolution=(2160, 1080)))

wait(Template(r"tpl1645594265915.png", record_pos=(0.319, 0.177), resolution=(2160, 1080)))
touch(Template(r"tpl1645594265915.png", record_pos=(0.319, 0.177), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645594822308.png", record_pos=(0.002, -0.072), resolution=(2160, 1080)))

wait(Template(r"tpl1645594335628.png", record_pos=(0.315, 0.179), resolution=(2160, 1080)))
touch(Template(r"tpl1645594335628.png", record_pos=(0.315, 0.179), resolution=(2160, 1080)))


sleep(2)


touch((478,201))

wait(Template(r"tpl1645594393227.png", record_pos=(0.315, 0.178), resolution=(2160, 1080)))
touch(Template(r"tpl1645594393227.png", record_pos=(0.315, 0.178), resolution=(2160, 1080)))

sleep(2)

touch((478,201))

sleep(16)




touch((411,185))


sleep(3)

touch((411,185))


sleep(3)

touch((411,185))


sleep(4)
touch(Template(r"tpl1645805947175.png", record_pos=(0.068, -0.09), resolution=(2160, 1080)))

sleep(3)

touch(Template(r"tpl1645805964104.png", record_pos=(0.072, -0.09), resolution=(2160, 1080)))

sleep(3)

touch(Template(r"tpl1645805986783.png", record_pos=(0.072, -0.087), resolution=(2160, 1080)))

sleep(3)

touch((411,185))
sleep(7)

wait(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))
touch(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))

wait(Template(r"tpl1645594595155.png", record_pos=(0.137, 0.102), resolution=(2160, 1080)))
touch(Template(r"tpl1645594595155.png", record_pos=(0.137, 0.102), resolution=(2160, 1080)))
sleep(6)



touch((850,240))
sleep(3)

wait(Template(r"tpl1645595145939.png", record_pos=(0.408, 0.202), resolution=(2160, 1080)))
touch(Template(r"tpl1645595145939.png", record_pos=(0.408, 0.202), resolution=(2160, 1080)))
sleep(3)

wait(Template(r"tpl1645595182884.png", record_pos=(-0.4, -0.089), resolution=(2160, 1080)))
touch(Template(r"tpl1645595182884.png", record_pos=(-0.4, -0.089), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645595206427.png", record_pos=(0.418, -0.0), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645595222475.png", record_pos=(0.443, -0.077), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645595236034.png", record_pos=(0.263, 0.196), resolution=(2160, 1080)))
sleep(16)


wait(Template(r"tpl1645595268659.png", record_pos=(0.003, 0.198), resolution=(2160, 1080)))
touch(Template(r"tpl1645595268659.png", record_pos=(0.003, 0.198), resolution=(2160, 1080)))

wait(Template(r"tpl1645595294739.png", record_pos=(0.436, -0.225), resolution=(2160, 1080)))
touch(Template(r"tpl1645595294739.png", record_pos=(0.436, -0.225), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645595321938.png", record_pos=(0.394, -0.037), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645595340357.png", record_pos=(0.37, -0.024), resolution=(2160, 1080)))
sleep(10)

touch((880,400))
sleep(50)

touch(Template(r"tpl1645595432443.png", record_pos=(0.01, 0.21), resolution=(2160, 1080)))
sleep(5)

touch(Template(r"tpl1645595466379.png", record_pos=(0.381, -0.032), resolution=(2160, 1080)))
sleep(6)

touch(Template(r"tpl1645595499611.png", record_pos=(0.412, 0.207), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645595523284.png", record_pos=(-0.397, -0.086), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645595539395.png", record_pos=(0.342, 0.182), resolution=(2160, 1080)))
sleep(3)

touch((653,147))
sleep(3)

touch(Template(r"tpl1645595581939.png", record_pos=(0.003, 0.175), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645595601955.png", record_pos=(-0.35, -0.036), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645595622252.png", record_pos=(0.005, -0.024), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645595640612.png", record_pos=(0.445, -0.22), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645595659892.png", record_pos=(0.394, -0.029), resolution=(2160, 1080)))
sleep(3)



#1-5

wait(Template(r"tpl1645595696771.png", record_pos=(0.385, -0.031), resolution=(2160, 1080)))
touch(Template(r"tpl1645595696771.png", record_pos=(0.385, -0.031), resolution=(2160, 1080)))

wait(Template(r"tpl1645595725123.png", record_pos=(0.295, 0.104), resolution=(2160, 1080)))
touch(Template(r"tpl1645595725123.png", record_pos=(0.295, 0.104), resolution=(2160, 1080)))

wait(Template(r"tpl1645595760451.png", record_pos=(-0.115, -0.134), resolution=(2160, 1080)))

touch(Template(r"tpl1645595821091.png", record_pos=(-0.113, -0.137), resolution=(2160, 1080)))
sleep(5)

touch(Template(r"tpl1645595847956.png", record_pos=(0.332, 0.11), resolution=(2160, 1080)))
sleep(3)

wait(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))
touch(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))
sleep(3)

touch((845,298))
sleep(3)
touch(Template(r"tpl1645595910524.png", record_pos=(0.006, -0.082), resolution=(2160, 1080)))
sleep(6)


touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))
sleep(3)
wait(Template(r"tpl1645595936764.png", record_pos=(-0.064, -0.081), resolution=(2160, 1080)))
touch(Template(r"tpl1645595946956.png", record_pos=(-0.067, -0.081), resolution=(2160, 1080)))

wait(Template(r"tpl1645595936764.png", record_pos=(-0.064, -0.081), resolution=(2160, 1080)))
touch(Template(r"tpl1645595946956.png", record_pos=(-0.067, -0.081), resolution=(2160, 1080)))

wait(Template(r"tpl1645595936764.png", record_pos=(-0.064, -0.081), resolution=(2160, 1080)))
touch(Template(r"tpl1645595946956.png", record_pos=(-0.067, -0.081), resolution=(2160, 1080)))
sleep(3)

wait(Template(r"tpl1650349047290.png", record_pos=(0.316, 0.206), resolution=(960, 540)))


#加速
touch((819,26))
sleep(3)
touch(Template(r"tpl1650349047290.png", record_pos=(0.316, 0.206), resolution=(960, 540)))
sleep(3)
touch(Template(r"tpl1645596066740.png", record_pos=(0.003, -0.083), resolution=(2160, 1080)))
sleep(3)
wait(Template(r"tpl1645596081812.png", record_pos=(0.313, 0.177), resolution=(2160, 1080)))
touch(Template(r"tpl1645596087923.png", record_pos=(0.314, 0.175), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645596092516.png", record_pos=(-0.003, -0.075), resolution=(2160, 1080)))
sleep(3)

wait(Template(r"tpl1645596103843.png", record_pos=(0.313, 0.177), resolution=(2160, 1080)))
touch(Template(r"tpl1645596109821.png", record_pos=(0.317, 0.181), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645596115364.png", record_pos=(-0.0, -0.075), resolution=(2160, 1080)))
sleep(8)


wait(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))
touch(Template(r"tpl1645593761418.png", record_pos=(0.409, -0.229), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645596185604.png", record_pos=(0.421, 0.027), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645596199555.png", record_pos=(0.243, 0.121), resolution=(2160, 1080)))
sleep(10)


if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(1)

if   exists(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080)))

else :

      sleep(1.0)

sleep(1)

touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))
sleep(20)

wait(Template(r"tpl1645596322229.png", record_pos=(0.411, -0.228), resolution=(2160, 1080)),timeout=100)
touch(Template(r"tpl1645596334756.png", record_pos=(0.417, -0.223), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645596354156.png", record_pos=(0.433, 0.023), resolution=(2160, 1080)))
sleep(4)


touch(Template(r"tpl1645596373957.png", record_pos=(0.133, 0.096), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645666520163.png", record_pos=(-0.178, -0.207), resolution=(2160, 1080)))
sleep(3)


touch((310,36))
sleep(3)


touch(Template(r"tpl1645666530692.png", record_pos=(0.307, -0.03), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645666540315.png", record_pos=(-0.005, 0.189), resolution=(2160, 1080)))
sleep(3)

wait(Template(r"tpl1645596384452.png", record_pos=(0.375, 0.018), resolution=(2160, 1080)))
touch(Template(r"tpl1645596384452.png", record_pos=(0.375, 0.018), resolution=(2160, 1080)))
sleep(10)
touch(Template(r"tpl1645596404764.png", record_pos=(0.254, 0.19), resolution=(2160, 1080)))
sleep(10)

wait(Template(r"tpl1645596440582.png", record_pos=(-0.003, 0.197), resolution=(2160, 1080)))
touch(Template(r"tpl1645596449124.png", record_pos=(-0.01, 0.206), resolution=(2160, 1080)))
sleep(10)

touch((930,53))
sleep(10)


touch((800,270))
sleep(10)

touch((850,280))
sleep(10)

touch((660,150))
sleep(10)

touch(Template(r"tpl1645596508085.png", record_pos=(-0.015, 0.16), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645596518901.png", record_pos=(0.439, -0.227), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645596533052.png", record_pos=(0.391, 0.01), resolution=(2160, 1080)))
sleep(3)



#1-6

wait(Template(r"tpl1645596548029.png", record_pos=(0.386, -0.034), resolution=(2160, 1080)))
touch(Template(r"tpl1645596548029.png", record_pos=(0.386, -0.034), resolution=(2160, 1080)))

wait(Template(r"tpl1645596567412.png", record_pos=(0.284, 0.102), resolution=(2160, 1080)))
touch(Template(r"tpl1645596572491.png", record_pos=(0.288, 0.104), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645596586485.png", record_pos=(0.166, -0.11), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645596594423.png", record_pos=(0.332, 0.105), resolution=(2160, 1080)))
sleep(3)

wait(Template(r"tpl1645596607781.png", record_pos=(0.403, -0.228), resolution=(2160, 1080)))
touch(Template(r"tpl1645596607781.png", record_pos=(0.403, -0.228), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645596625020.png", record_pos=(0.422, 0.025), resolution=(2160, 1080)))
sleep(7)


touch((480,184))
sleep(3)

touch(Template(r"tpl1645758708682.png", record_pos=(0.408, 0.16), resolution=(2160, 1080)))
sleep(3)

if   exists(Template(r"tpl1645772067314.png", record_pos=(0.405, -0.225), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645772067314.png", record_pos=(0.405, -0.225), resolution=(2160, 1080)))

else :

      sleep(1.0)





sleep(30)


wait(Template(r"tpl1645596731220.png", record_pos=(0.415, -0.226), resolution=(2160, 1080)))
touch(Template(r"tpl1645596731220.png", record_pos=(0.415, -0.226), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645596744340.png", record_pos=(0.426, 0.027), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645596752860.png", record_pos=(0.246, 0.118), resolution=(2160, 1080)))
sleep(10)






if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(3)

if   exists(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080)))

else :

      sleep(1.0)

sleep(3)

touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))



sleep(30)

wait(Template(r"tpl1645596731220.png", record_pos=(0.415, -0.226), resolution=(2160, 1080)),timeout=100)
touch(Template(r"tpl1645596731220.png", record_pos=(0.415, -0.226), resolution=(2160, 1080)))

sleep(3)

touch((850,300))
sleep(3)

touch(Template(r"tpl1645763233242.png", record_pos=(0.114, 0.101), resolution=(2160, 1080)))
sleep(10)


wait(Template(r"tpl1645596932284.png", record_pos=(0.388, -0.028), resolution=(2160, 1080)))
touch(Template(r"tpl1645596932284.png", record_pos=(0.388, -0.028), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645596958884.png", record_pos=(0.379, 0.013), resolution=(2160, 1080)))
sleep(5)

touch(Template(r"tpl1645596970292.png", record_pos=(0.294, 0.104), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645596988061.png", record_pos=(-0.074, 0.141), resolution=(2160, 1080)))
sleep(3)

touch((400,400))
sleep(6)

touch((468,386),duration=3)
sleep(20)

touch((900,488))
sleep(3)
touch(Template(r"tpl1645667495069.png", record_pos=(0.01, 0.187), resolution=(2160, 1080)))
sleep(3)

touch((481,463))
sleep(20)

touch(Template(r"tpl1645667529689.png", record_pos=(-0.197, 0.188), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645596518901.png", record_pos=(0.439, -0.227), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1649126127322.png", record_pos=(0.468, 0.145), resolution=(2340, 1080)))
sleep(3)
touch(Template(r"tpl1649131583890.png", record_pos=(-0.155, -0.006), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649131606818.png", record_pos=(0.263, 0.096), resolution=(2340, 1080)))
sleep(9)



touch((138,487))
sleep(3)

touch(Template(r"tpl1649131870499.png", record_pos=(0.001, 0.18), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649131777742.png", record_pos=(-0.287, 0.18), resolution=(2340, 1080)))
sleep(3)
touch(Template(r"tpl1649131870499.png", record_pos=(0.001, 0.18), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649131785525.png", record_pos=(-0.201, 0.182), resolution=(2340, 1080)))
sleep(3)
touch(Template(r"tpl1649131870499.png", record_pos=(0.001, 0.18), resolution=(2340, 1080)))
sleep(3)


touch(Template(r"tpl1646039661342.png", record_pos=(0.439, -0.222), resolution=(2160, 1080)))
sleep(3)


touch((900,25))
sleep(3)



touch((850,280))
sleep(3)


touch((800,507))
sleep(3)



swipe((415,456), (525,188))

sleep(3)

swipe((500,456), (525,188))

sleep(6)

touch((900,25))
sleep(6)


touch((850,280))
sleep(3)

touch(Template(r"tpl1645597330109.png", record_pos=(0.399, 0.003), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645597338141.png", record_pos=(0.253, 0.197), resolution=(2160, 1080)))
sleep(3)


touch((560,348))
sleep(3)

touch((560,348))
sleep(3)


touch((670,165))
sleep(3)

touch((760,464))
sleep(3)

touch((560,348))
sleep(3)

touch((560,348))
sleep(3)


touch((670,165))
sleep(3)

touch((760,464))
sleep(3)

wait(Template(r"tpl1645597401253.png", record_pos=(0.005, 0.212), resolution=(2160, 1080)))
touch(Template(r"tpl1645597406516.png", record_pos=(0.003, 0.215), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645597420789.png", record_pos=(0.443, -0.22), resolution=(2160, 1080)))
sleep(3)

touch((800,282))
sleep(6)

touch((850,280))
sleep(3)

touch(Template(r"tpl1645667822357.png", record_pos=(0.315, -0.05), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645597530508.png", record_pos=(-0.005, 0.172), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645597507221.png", record_pos=(-0.445, -0.117), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645597517253.png", record_pos=(0.136, -0.055), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645597530508.png", record_pos=(-0.005, 0.172), resolution=(2160, 1080)))
sleep(4)


touch(Template(r"tpl1645597420789.png", threshold=0.9000000000000001, record_pos=(0.443, -0.22), resolution=(2160, 1080)))
sleep(4)


touch((850,280))
sleep(3)

#2-1

touch((834,242))
sleep(3)
wait(Template(r"tpl1645597609279.png", record_pos=(0.294, 0.104), resolution=(2160, 1080)))
touch(Template(r"tpl1645597613549.png", record_pos=(0.301, 0.101), resolution=(2160, 1080)))

wait(Template(r"tpl1645597632421.png", record_pos=(0.296, 0.05), resolution=(2160, 1080)))
touch(Template(r"tpl1645597636269.png", record_pos=(0.292, 0.048), resolution=(2160, 1080)))
sleep(3)

touch((800,380))
sleep(5)

touch(Template(r"tpl1645596731220.png", record_pos=(0.415, -0.226), resolution=(2160, 1080)))
sleep(3)

touch((845,298))
sleep(3)


touch(Template(r"tpl1645597686625.png", record_pos=(0.002, -0.076), resolution=(2160, 1080)))
sleep(10)


if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(1)


touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))
sleep(30)

wait(Template(r"tpl1645671130280.png", record_pos=(0.409, -0.226), resolution=(2160, 1080)),timeout=60)
touch(Template(r"tpl1645671130280.png", record_pos=(0.409, -0.226), resolution=(2160, 1080)))

sleep(2)


wait(Template(r"tpl1645597884777.png", record_pos=(0.426, 0.025), resolution=(2160, 1080)))
sleep(2)


touch((845,298))
sleep(2)

touch(Template(r"tpl1645597908590.png", record_pos=(0.009, -0.08), resolution=(2160, 1080)))
sleep(15)

if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(1)



touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))
sleep(35)


wait(Template(r"tpl1645671309608.png", record_pos=(0.401, -0.232), resolution=(2160, 1080)),timeout=30)
touch(Template(r"tpl1645671309608.png", record_pos=(0.401, -0.232), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645671318841.png", record_pos=(0.11, 0.101), resolution=(2160, 1080)))
sleep(10)


touch((749,56))
sleep(3)

touch(Template(r"tpl1645598172446.png", record_pos=(0.388, -0.131), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645598203069.png", record_pos=(0.296, -0.141), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645598213766.png", record_pos=(0.001, 0.197), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645598223678.png", record_pos=(0.295, -0.149), resolution=(2160, 1080)),times=20,duration=1)
touch(Template(r"tpl1645598366238.png", record_pos=(-0.294, -0.062), resolution=(2160, 1080)))

touch(Template(r"tpl1645598223678.png", record_pos=(0.295, -0.149), resolution=(2160, 1080)),times=16,duration=1)
touch(Template(r"tpl1645598344973.png", record_pos=(-0.294, -0.035), resolution=(2160, 1080)))
touch(Template(r"tpl1645598223678.png", record_pos=(0.295, -0.149), resolution=(2160, 1080)),times=14,duration=1)
touch(Template(r"tpl1645598386406.png", record_pos=(-0.293, -0.001), resolution=(2160, 1080)))
touch(Template(r"tpl1645598223678.png", record_pos=(0.295, -0.149), resolution=(2160, 1080)),times=8,duration=1)

touch(Template(r"tpl1645598422861.png", record_pos=(-0.301, 0.055), resolution=(2160, 1080)))
touch(Template(r"tpl1645598223678.png", record_pos=(0.295, -0.149), resolution=(2160, 1080)),times=16,duration=1)

touch(Template(r"tpl1645598579862.png", record_pos=(0.372, -0.208), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645598595574.png", record_pos=(0.395, -0.035), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645598620446.png", record_pos=(0.412, 0.013), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645598625932.png", record_pos=(0.26, 0.198), resolution=(2160, 1080)))
sleep(10)

touch(Template(r"tpl1645753118743.png", record_pos=(0.004, 0.216), resolution=(2160, 1080)))
sleep(5)

touch(Template(r"tpl1645598673342.png", record_pos=(0.436, -0.224), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645598680486.png", record_pos=(0.393, 0.007), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645598688197.png", record_pos=(0.407, 0.02), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645842045032.png", record_pos=(-0.331, -0.038), resolution=(2160, 1080)))
sleep(3)

touch((630,145))
sleep(3)

touch(Template(r"tpl1645842069134.png", record_pos=(-0.0, 0.183), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645842074902.png", record_pos=(0.094, 0.153), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645842093421.png", record_pos=(0.002, 0.195), resolution=(2160, 1080)))


sleep(3)


touch(Template(r"tpl1645598738342.png", record_pos=(0.444, -0.224), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645598745992.png", record_pos=(0.403, 0.01), resolution=(2160, 1080)))
sleep(3)

























#2-2

wait(Template(r"tpl1645598763462.png", record_pos=(0.411, -0.028), resolution=(2160, 1080)))
touch(Template(r"tpl1645598763462.png", record_pos=(0.411, -0.028), resolution=(2160, 1080)))

wait(Template(r"tpl1645598785173.png", record_pos=(0.29, 0.103), resolution=(2160, 1080)))
touch(Template(r"tpl1645598785173.png", record_pos=(0.29, 0.103), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645598804790.png", record_pos=(0.164, -0.046), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645598819286.png", record_pos=(0.332, 0.106), resolution=(2160, 1080)))
sleep(6)

touch(Template(r"tpl1645598835606.png", record_pos=(0.406, -0.231), resolution=(2160, 1080)))
sleep(3)

touch((845,298))
sleep(3)

touch(Template(r"tpl1645598852254.png", record_pos=(-0.001, -0.071), resolution=(2160, 1080)))
sleep(8)

if   exists(Template(r"tpl1650349322055.png", threshold=0.9000000000000001, record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(3)

touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))
sleep(30)

wait(Template(r"tpl1645598928254.png", record_pos=(0.409, -0.231), resolution=(2160, 1080)),timeout=60)
touch(Template(r"tpl1645598928254.png", record_pos=(0.409, -0.231), resolution=(2160, 1080)))
sleep(3)



touch((860,300))
sleep(3)


touch(Template(r"tpl1645598955442.png", record_pos=(-0.002, -0.063), resolution=(2160, 1080)))
sleep(10)




if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(3)


touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))
sleep(40)

wait(Template(r"tpl1645671980273.png", record_pos=(0.409, -0.226), resolution=(2160, 1080)),timeout=65)
sleep(3)

touch(Template(r"tpl1645671980273.png", record_pos=(0.409, -0.226), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645671988001.png", record_pos=(0.109, 0.102), resolution=(2160, 1080)))
sleep(5)

touch(Template(r"tpl1645672003841.png", record_pos=(0.207, 0.209), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645599406911.png", record_pos=(0.197, -0.065), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645599419815.png", record_pos=(0.195, -0.059), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645599426548.png", record_pos=(0.446, -0.15), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645599432662.png", record_pos=(0.15, 0.195), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))
sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))
sleep(1.0)

touch(Template(r"tpl1649123131653.png", record_pos=(-0.435, -0.207), resolution=(2340, 1080)))
sleep(3)
touch(Template(r"tpl1645678487647.png", record_pos=(0.194, -0.066), resolution=(2160, 1080)))
sleep(1.0)

touch(Template(r"tpl1645678487647.png", record_pos=(0.194, -0.066), resolution=(2160, 1080)))
sleep(1.0)

touch(Template(r"tpl1649123230856.png", record_pos=(0.215, -0.064), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(2)


touch(Template(r"tpl1645599448559.png", record_pos=(0.441, -0.224), resolution=(2160, 1080)))
sleep(5)



touch(Template(r"tpl1645599456806.png", record_pos=(0.402, 0.048), resolution=(2160, 1080)))
sleep(9)

touch(Template(r"tpl1645599466246.png", record_pos=(0.286, 0.105), resolution=(2160, 1080)))
sleep(8)


touch((562,407))
sleep(3)


touch(Template(r"tpl1645672259770.png", record_pos=(0.244, -0.129), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1649123521763.png", record_pos=(0.445, -0.206), resolution=(2340, 1080)))
sleep(3)



touch((850,280))
sleep(3)

touch((850,323))
sleep(3)


touch(Template(r"tpl1645599520655.png", record_pos=(0.258, 0.198), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645599527006.png", record_pos=(0.09, 0.079), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645599531854.png", record_pos=(-0.001, 0.089), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645682508153.png", record_pos=(0.259, 0.205), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645682508153.png", record_pos=(0.259, 0.205), resolution=(2160, 1080)))
sleep(3)

touch((478,369))
sleep(3)

sleep(20)

touch(Template(r"tpl1645682549314.png", record_pos=(-0.0, 0.215), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645599565319.png", record_pos=(-0.051, 0.168), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645599581663.png", record_pos=(0.13, 0.037), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645599589302.png", record_pos=(-0.008, 0.171), resolution=(2160, 1080)))
sleep(5)

touch(Template(r"tpl1645599596934.png", record_pos=(-0.36, -0.04), resolution=(2160, 1080)))
sleep(3)

touch((630,150))
sleep(3)

touch((480,450))
sleep(3)

touch((560,420))
sleep(3)

touch(Template(r"tpl1645599634695.png", record_pos=(-0.007, 0.194), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645599643560.png", record_pos=(0.436, -0.222), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645599651470.png", record_pos=(0.41, 0.008), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645599657959.png", record_pos=(0.415, 0.013), resolution=(2160, 1080)))
sleep(3)

touch((500,460))
sleep(3)

touch(Template(r"tpl1645599681966.png", record_pos=(0.204, 0.214), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645599710423.png", record_pos=(-0.397, 0.172), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645599717359.png", record_pos=(0.121, 0.183), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645672538322.png", record_pos=(-0.006, 0.186), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645599717359.png", record_pos=(0.121, 0.183), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645672538322.png", record_pos=(-0.006, 0.186), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645672565106.png", record_pos=(0.439, -0.223), resolution=(2160, 1080)))
sleep(3)


#2-3


touch((864,508))

sleep(2)

touch((880,261))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))




sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))




sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))





sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))





sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))

sleep(2)

touch((920,40))

#



sleep(3)

touch((850,240))
sleep(6)



touch((750,400))
sleep(3)

touch(Template(r"tpl1645599799207.png", record_pos=(0.022, 0.01), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645599806966.png", record_pos=(0.336, 0.112), resolution=(2160, 1080)))
sleep(6)

wait(Template(r"tpl1645599819718.png", record_pos=(0.402, -0.225), resolution=(2160, 1080)))
touch(Template(r"tpl1645599819718.png", record_pos=(0.402, -0.225), resolution=(2160, 1080)))
sleep(3)


touch((845,298))
sleep(3)

touch(Template(r"tpl1645599844626.png", record_pos=(-0.004, -0.075), resolution=(2160, 1080)))
sleep(6)


touch(Template(r"tpl1645599853663.png", record_pos=(0.412, 0.155), resolution=(2160, 1080)))
sleep(5)


touch((868,26))


sleep(30)

wait(Template(r"tpl1645678706240.png", record_pos=(0.404, -0.231), resolution=(2160, 1080)),timeout=70)
sleep(1)
touch(Template(r"tpl1645678706240.png", record_pos=(0.404, -0.231), resolution=(2160, 1080)))
sleep(8)


touch((800,380))
sleep(3)

touch(Template(r"tpl1649082754241.png", record_pos=(0.088, 0.078), resolution=(2340, 1080)))
sleep(2)

touch(Template(r"tpl1645600030520.png", record_pos=(0.397, 0.139), resolution=(2160, 1080)))
sleep(50)

wait(Template(r"tpl1645603501778.png", record_pos=(0.404, -0.226), resolution=(2160, 1080)),timeout=300)
sleep(2)

touch(Template(r"tpl1645603501778.png", record_pos=(0.404, -0.226), resolution=(2160, 1080)))

sleep(5)

touch(Template(r"tpl1645842959259.png", record_pos=(0.115, 0.1), resolution=(2160, 1080)))

sleep(5)


touch(Template(r"tpl1645603539346.png", record_pos=(0.409, 0.206), resolution=(2160, 1080)))

sleep(2)

touch(Template(r"tpl1645673096362.png", record_pos=(0.339, 0.178), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645603562929.png", record_pos=(-0.38, -0.12), resolution=(2160, 1080)))
sleep(2)
touch(Template(r"tpl1645603570058.png", record_pos=(-0.067, 0.16), resolution=(2160, 1080)))
sleep(2)
touch(Template(r"tpl1645603576457.png", record_pos=(-0.248, 0.213), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645603580842.png", record_pos=(-0.063, 0.204), resolution=(2160, 1080)))

sleep(5)

touch(Template(r"tpl1645673191739.png", record_pos=(0.013, -0.106), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645673276770.png", record_pos=(-0.233, 0.208), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645673283050.png", record_pos=(-0.056, 0.214), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645673297138.png", record_pos=(-0.426, -0.22), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645673303938.png", record_pos=(0.015, 0.191), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645679065400.png", record_pos=(-0.362, -0.101), resolution=(2160, 1080)))

sleep(3)

touch(Template(r"tpl1645604269754.png", record_pos=(-0.064, 0.163), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645604233027.png", record_pos=(-0.246, 0.214), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645604238122.png", record_pos=(-0.054, 0.211), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645604296034.png", record_pos=(0.018, -0.106), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645604233027.png", record_pos=(-0.246, 0.214), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645604238122.png", record_pos=(-0.054, 0.211), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645604245922.png", record_pos=(-0.424, -0.222), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645604251674.png", record_pos=(0.02, 0.194), resolution=(2160, 1080)))
sleep(3)

touch((150,230))
sleep(3)

touch((150,230))
sleep(3)

touch(Template(r"tpl1645604134018.png", record_pos=(-0.061, 0.165), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1650355513794.png", record_pos=(-0.251, 0.211), resolution=(960, 540)))
sleep(3)

touch(Template(r"tpl1645673376491.png", record_pos=(-0.05, 0.211), resolution=(2160, 1080)))
sleep(3)

touch((176,167))
sleep(3)

touch(Template(r"tpl1650355513794.png", record_pos=(-0.251, 0.211), resolution=(960, 540)))
sleep(3)

touch(Template(r"tpl1645673404884.png", record_pos=(-0.07, 0.208), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645673413699.png", record_pos=(-0.423, -0.216), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645673433434.png", record_pos=(0.018, 0.186), resolution=(2160, 1080)))
sleep(3)



touch(Template(r"tpl1645679065400.png", record_pos=(-0.362, -0.101), resolution=(2160, 1080)))

sleep(3)

touch(Template(r"tpl1645604269754.png", record_pos=(-0.064, 0.163), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1650355513794.png", record_pos=(-0.251, 0.211), resolution=(960, 540)))
sleep(3)

touch(Template(r"tpl1645604238122.png", record_pos=(-0.054, 0.211), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645604296034.png", record_pos=(0.018, -0.106), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1650355513794.png", record_pos=(-0.251, 0.211), resolution=(960, 540)))
sleep(3)

touch(Template(r"tpl1645604238122.png", record_pos=(-0.054, 0.211), resolution=(2160, 1080)))
sleep(3)



touch((900,50))
sleep(3)


touch((826,278))
sleep(3)


touch((826,320))
sleep(9)

touch(Template(r"tpl1645679401640.png", record_pos=(0.419, 0.128), resolution=(2160, 1080)))
sleep(30)

wait(Template(r"tpl1645676311872.png", record_pos=(0.001, 0.216), resolution=(2160, 1080)),timeout=40)
sleep(3)

touch(Template(r"tpl1645676311872.png", record_pos=(0.001, 0.216), resolution=(2160, 1080)))
sleep(6)

touch(Template(r"tpl1646290458845.png", record_pos=(0.403, 0.01), resolution=(2160, 1080)))
sleep(5)

touch((500,460))
sleep(3)














#duihuanma

touch(Template(r"tpl1645602128440.png", record_pos=(-0.444, -0.202), resolution=(2160, 1080)))
sleep(3)
wait(Template(r"tpl1645602146088.png", record_pos=(-0.259, 0.106), resolution=(2160, 1080)))
touch((230,376))
sleep(3)

touch((474,258))
sleep(3)

text("CK666")
sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(3)

touch((679,157))
sleep(3)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("CK777")
sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(3)

touch((679,157))

sleep(3)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("CK888")
sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(3)

touch((679,157))

sleep(3)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("魂师对决冲鸭")
sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(3)

touch((679,157))

sleep(3)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("DL9986")
sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(3)

touch((679,157))

sleep(3)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("YZ777")
sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(3)

touch((679,157))

sleep(3)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("YZ888")
sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(3)

touch((679,157))
sleep(3)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)
text("YZ666")

sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(3)

touch((679,157))

sleep(3)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)
text("史莱克七怪出战")

sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(3)

touch((679,157))
sleep(3)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("DL888")
sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(3)

touch((679,157))

sleep(3)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("DL777")
sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(1)
touch((679,157))

sleep(1)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("DL666")

sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(1)

touch((679,157))

sleep(1)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("VIP666")

sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(1)

touch((679,157))

sleep(1)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)



text("BQ888")
sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(1)

touch((679,157))

sleep(1)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)


text("DL2021")
sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(1)

touch((679,157))

sleep(1)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("三哥永远滴神")

sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(1)

touch((679,157))

sleep(1)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)

text("武魂殿必胜")

sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(1)

touch((679,157))

sleep(1)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)


text("BQ777")

sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(1)
touch((679,157))

sleep(1)

touch((230,376))
sleep(2)

touch((474,258))
sleep(2)
text("BQ666")

sleep(2)

touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(2)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(1)

touch((679,157))

sleep(1)

touch((230,376))
sleep(2)

touch((474,258))
sleep(1)


text("我有一根大香肠")
sleep(1)
touch(Template(r"tpl1645602545360.png", record_pos=(0.431, 0.187), resolution=(2160, 1080)))
sleep(1)

touch(Template(r"tpl1645602552073.png", record_pos=(0.096, 0.076), resolution=(2160, 1080)))
sleep(1)

touch((679,157))

sleep(3)

sleep(2)
touch(Template(r"tpl1645677959795.png", record_pos=(0.373, -0.204), resolution=(2160, 1080)))
sleep(6)


touch((96,189))
sleep(3)


touch(Template(r"tpl1645677975187.png", record_pos=(-0.2, 0.186), resolution=(2160, 1080)))
sleep(2)
touch(Template(r"tpl1645677982159.png", record_pos=(0.087, 0.079), resolution=(2160, 1080)))
sleep(2)

touch((500,460))
sleep(3)


touch((862,67))
sleep(3)



#hw
'''
touch(Template(r"tpl1649125830576.png", record_pos=(-0.262, -0.195), resolution=(2340, 1080)))

sleep(2)

touch(Template(r"tpl1649125956395.png", record_pos=(-0.165, 0.112), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649125975799.png", record_pos=(0.0, 0.18), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649126026748.png", record_pos=(0.446, -0.207), resolution=(2340, 1080)))
sleep(3)
'''


touch(Template(r"tpl1649126127322.png", record_pos=(0.468, 0.145), resolution=(2340, 1080)))
sleep(3)
touch(Template(r"tpl1649126178574.png", record_pos=(-0.001, -0.008), resolution=(2340, 1080)))

sleep(5)

touch(Template(r"tpl1646038910983.png", record_pos=(0.29, 0.107), resolution=(2160, 1080)))
sleep(10)



touch(Template(r"tpl1649126246104.png", record_pos=(0.124, 0.094), resolution=(2340, 1080)))
sleep(5)


touch((470,384),duration=5)
sleep(3)


touch((500,500),times=200)
sleep(3)


touch((470,384),duration=5)
sleep(3)


touch((500,500),times=200)
sleep(3)

touch(Template(r"tpl1646039560983.png", record_pos=(-0.095, 0.185), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1646039661342.png", record_pos=(0.439, -0.222), resolution=(2160, 1080)))
sleep(3)

touch((800,265))

sleep(3)

touch((676,505))

y=0
while y<10:
  if   exists(Template(r"tpl1645678487647.png", record_pos=(0.194, -0.066), resolution=(2160, 1080))):
      
        
        touch(Template(r"tpl1645678487647.png", record_pos=(0.194, -0.066), resolution=(2160, 1080)))
        sleep(1.0)


  else :

        sleep(1.0)
        
  y=y+1


sleep(3)

touch(Template(r"tpl1649126881810.png", record_pos=(-0.41, 0.16), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649126969505.png", record_pos=(0.12, 0.163), resolution=(2340, 1080)),duration=1,times=20)
sleep(3)
touch(Template(r"tpl1646039661342.png", record_pos=(0.439, -0.222), resolution=(2160, 1080)))
sleep(3)






#bb

touch(Template(r"tpl1649127304653.png", record_pos=(0.289, 0.191), resolution=(2340, 1080)))
sleep(3)




touch(Template(r"tpl1651419887792.png", threshold=0.9500000000000002, record_pos=(-0.123, -0.144), resolution=(960, 540)))



sleep(2)

touch(Template(r"tpl1646102652346.png", record_pos=(0.223, 0.179), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1646102725194.png", record_pos=(-0.157, -0.069), resolution=(2160, 1080)))
sleep(3)

touch((553,329))
sleep(2)
touch((553,329))
sleep(2)
touch((553,329))
sleep(2)
touch((553,329))
sleep(2)
touch(Template(r"tpl1646102738762.png", threshold=0.9000000000000001, record_pos=(-0.0, 0.123), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1646102747985.png", record_pos=(-0.0, 0.195), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1646102652346.png", record_pos=(0.223, 0.179), resolution=(2160, 1080)))
sleep(3)

touch((630,210))
sleep(3)

touch(Template(r"tpl1649127385258.png", record_pos=(0.109, 0.059), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1646102738762.png", threshold=0.9000000000000001, record_pos=(-0.0, 0.123), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1646102747985.png", record_pos=(-0.0, 0.195), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1646039661342.png", record_pos=(0.439, -0.222), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1649125439198.png", record_pos=(0.23, 0.202), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649127193977.png", record_pos=(0.216, -0.065), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))
sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))
sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))


sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))
sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))
sleep(1)

touch((474,459))
sleep(3)


touch((37,48))
sleep(3)

touch((37,48))
sleep(3)

touch(Template(r"tpl1649127925809.png", record_pos=(0.324, -0.066), resolution=(2340, 1080)))

sleep(3)


touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))


sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))

sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))


sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))


sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))


sleep(1.0)

touch(Template(r"tpl1649122924974.png", record_pos=(0.181, 0.179), resolution=(2340, 1080)))




sleep(3)

touch((474,459))
sleep(3)

touch(Template(r"tpl1646039661342.png", record_pos=(0.439, -0.222), resolution=(2160, 1080)))
sleep(3)

touch((930,50))
sleep(3)

#2-4
sleep(1.0)
touch((850,240))
sleep(3)


touch(Template(r"tpl1645603688201.png", record_pos=(0.293, 0.107), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645603702498.png", record_pos=(-0.157, 0.05), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645603715233.png", record_pos=(0.336, 0.11), resolution=(2160, 1080)))
sleep(10)

if   exists(Template(r"tpl1645603726986.png", record_pos=(0.412, -0.229), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645603726986.png", record_pos=(0.412, -0.229), resolution=(2160, 1080)))
    

else :

      sleep(1.0)


sleep(10)




if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(1)

if   exists(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080)))

else :

      sleep(1.0)

sleep(1)

touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))
sleep(30)



wait(Template(r"tpl1645603798362.png", record_pos=(0.418, -0.228), resolution=(2160, 1080)),timeout=30)
sleep(3)
touch(Template(r"tpl1645603798362.png", record_pos=(0.418, -0.228), resolution=(2160, 1080)))
sleep(4)

touch((860,300))
sleep(10)


touch((482,260))
sleep(3)

touch((482,270))
sleep(3)

touch((482,250))
sleep(3)

touch(Template(r"tpl1645603836882.png", record_pos=(0.353, 0.088), resolution=(2160, 1080)))

sleep(3)


touch(Template(r"tpl1645603848786.png", record_pos=(0.156, -0.041), resolution=(2160, 1080)))

sleep(3)

touch(Template(r"tpl1645603853946.png", record_pos=(0.407, 0.161), resolution=(2160, 1080)))
sleep(30)

wait(Template(r"tpl1645603798362.png", record_pos=(0.418, -0.228), resolution=(2160, 1080)),timeout=70)
sleep(3)

touch(Template(r"tpl1645603798362.png", record_pos=(0.418, -0.228), resolution=(2160, 1080)))
sleep(3)

touch((860,300))
sleep(3)

touch(Template(r"tpl1645604597043.png", record_pos=(0.111, 0.098), resolution=(2160, 1080)))
sleep(10)


touch((826,321))
sleep(8)

touch((875,400))
sleep(3)

sleep(40)

wait(Template(r"tpl1645683596843.png", record_pos=(0.003, 0.218), resolution=(2160, 1080)),timeout=70)
sleep(10)

touch(Template(r"tpl1645683596843.png", record_pos=(0.003, 0.218), resolution=(2160, 1080)))
sleep(10)


touch((850,280))
sleep(3)



touch((850,323))
sleep(3)

touch((875,400))
sleep(3)








touch((875,400))
sleep(3)

sleep(40)

wait(Template(r"tpl1645683596843.png", record_pos=(0.003, 0.218), resolution=(2160, 1080)),timeout=70)
sleep(10)

touch(Template(r"tpl1645683596843.png", record_pos=(0.003, 0.218), resolution=(2160, 1080)))
sleep(10)

touch((850,280))
sleep(3)






touch(Template(r"tpl1649129503832.png", record_pos=(0.415, 0.201), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129651410.png", record_pos=(-0.217, -0.102), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129671238.png", record_pos=(0.36, 0.158), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129757188.png", threshold=0.9000000000000001, record_pos=(0.352, -0.115), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129790033.png", record_pos=(-0.0, 0.168), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129837460.png", record_pos=(0.085, 0.14), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129860955.png", record_pos=(0.002, 0.18), resolution=(2340, 1080)))
sleep(1.0)

touch(Template(r"tpl1649129885834.png", record_pos=(-0.391, -0.096), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129933804.png", record_pos=(-0.062, 0.15), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129952423.png", record_pos=(-0.261, 0.196), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129971311.png", record_pos=(-0.095, 0.194), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1645852177931.png", record_pos=(0.44, -0.222), resolution=(2160, 1080)))
sleep(3)



touch(Template(r"tpl1649129503832.png", record_pos=(0.415, 0.201), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649130044614.png", record_pos=(-0.315, -0.101), resolution=(2340, 1080)))
sleep(2)

touch(Template(r"tpl1649129671238.png", record_pos=(0.36, 0.158), resolution=(2340, 1080)))
sleep(2)

touch((665,148))
sleep(2)

touch(Template(r"tpl1645852364770.png", record_pos=(-0.007, 0.173), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1649129885834.png", record_pos=(-0.391, -0.096), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129933804.png", record_pos=(-0.062, 0.15), resolution=(2340, 1080)))
sleep(5)


touch((236,480))
sleep(3)

touch((426,478))
sleep(3)

touch((61,50))
sleep(3)

touch((61,50))
sleep(3)

touch(Template(r"tpl1649130109266.png", record_pos=(-0.216, -0.1), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129671238.png", record_pos=(0.36, 0.158), resolution=(2340, 1080)))
sleep(5)

touch((653,147))
sleep(3)

touch(Template(r"tpl1645852364770.png", record_pos=(-0.007, 0.173), resolution=(2160, 1080)))
sleep(3)

touch((108,140))
sleep(3)

touch(Template(r"tpl1649129933804.png", record_pos=(-0.062, 0.15), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129952423.png", record_pos=(-0.261, 0.196), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649129971311.png", record_pos=(-0.095, 0.194), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1645852177931.png", record_pos=(0.44, -0.222), resolution=(2160, 1080)))
sleep(3)


#touch(Template(r"tpl1649132022423.png", record_pos=(0.351, -0.178), resolution=(2340, 1080)))
#sleep(3)

#touch(Template(r"tpl1649132204581.png", record_pos=(0.302, 0.088), resolution=(2340, 1080)))
#sleep(1.0)
#touch(Template(r"tpl1649132222097.png", record_pos=(0.001, 0.135), resolution=(2340, 1080)))
#sleep(1.0)
#touch(Template(r"tpl1649132302924.png", record_pos=(0.0, 0.18), resolution=(2340, 1080)))

#sleep(1.0)

#touch(Template(r"tpl1645852177931.png", record_pos=(0.44, -0.222), resolution=(2160, 1080)))



touch((850,323))
sleep(3)

if   exists(Template(r"tpl1645883958039.png", record_pos=(-0.0, 0.202), resolution=(2160, 1080))):
      
      touch(Template(r"tpl1645883958039.png", record_pos=(-0.0, 0.202), resolution=(2160, 1080)))

     
      sleep(1.0)


else :

      sleep(1.0)

sleep(1.0)

touch((850,323))
sleep(3)

if   exists(Template(r"tpl1645883958039.png", record_pos=(-0.0, 0.202), resolution=(2160, 1080))):
      
      touch(Template(r"tpl1645883958039.png", record_pos=(-0.0, 0.202), resolution=(2160, 1080)))

     
      sleep(1.0)


else :

      sleep(1.0)    
        

        

touch((850,280))
sleep(3)


if   exists(Template(r"tpl1645883958039.png", record_pos=(-0.0, 0.202), resolution=(2160, 1080))):
      
      touch(Template(r"tpl1645883958039.png", record_pos=(-0.0, 0.202), resolution=(2160, 1080)))

     
      sleep(1.0)


else :

      sleep(1.0)   

sleep(3)




#2-5
sleep(3)

touch((850,240))
sleep(3)

wait(Template(r"tpl1645755315853.png", record_pos=(0.286, 0.103), resolution=(2160, 1080)))

touch(Template(r"tpl1645755315853.png", record_pos=(0.286, 0.103), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645755336445.png", record_pos=(-0.361, 0.194), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645755343917.png", record_pos=(0.006, 0.196), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645755349477.png", record_pos=(-0.271, 0.195), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645755343917.png", record_pos=(0.006, 0.196), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645755364420.png", record_pos=(-0.287, -0.027), resolution=(2160, 1080)))
sleep(6)

touch(Template(r"tpl1645755372589.png", record_pos=(0.333, 0.111), resolution=(2160, 1080)))
sleep(5)

touch(Template(r"tpl1645755526637.png", record_pos=(0.4, -0.227), resolution=(2160, 1080)))
sleep(4)

touch((860,300))
sleep(3)

touch(Template(r"tpl1645755415490.png", record_pos=(-0.003, -0.086), resolution=(2160, 1080)))
sleep(5)

touch(Template(r"tpl1645755430100.png", record_pos=(0.338, 0.081), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645755436045.png", record_pos=(0.408, 0.157), resolution=(2160, 1080)))
sleep(20)

wait(Template(r"tpl1645755526637.png", record_pos=(0.412, -0.229), resolution=(2160, 1080)),timeout=120)
sleep(2)

touch(Template(r"tpl1645755526637.png", record_pos=(0.412, -0.229), resolution=(2160, 1080)))
sleep(3)

touch((900,25))
sleep(8)



if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(1)

if   exists(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080)))

else :

      sleep(1.0)

sleep(3)


touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))

sleep(30)


wait(Template(r"tpl1645755526637.png", record_pos=(0.407, -0.229), resolution=(2160, 1080)),timeout=300)
sleep(1)

touch(Template(r"tpl1645755526637.png", record_pos=(0.407, -0.229), resolution=(2160, 1080)))
sleep(3)

touch((500,460))
sleep(3)

touch((600,365))
sleep(3)

sleep(25)

touch((900,25))
sleep(3)

touch((864,508))

sleep(2)

touch((880,261))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))




sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))




sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))





sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))





sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))

sleep(2)

touch((920,40))

sleep(3)



#升级魂力
touch((864,508))
sleep(2)

touch((880,261))
sleep(2)

touch((930,180))
sleep(2)

touch((760,460))
sleep(2)

touch((480,370))
sleep(2)

touch((500,460))
sleep(2)

touch((470,330))
sleep(2)




touch((760,460))
sleep(2)

touch((480,370))
sleep(2)

touch((500,460))
sleep(2)

touch((470,330))
sleep(2)



touch((760,460))
sleep(2)

touch((480,370))
sleep(2)

touch((500,460))
sleep(2)

touch((470,330))
sleep(2)



touch((760,460))
sleep(2)

touch((480,370))
sleep(2)

touch((500,460))
sleep(2)

touch((470,330))
sleep(2)



touch((760,460))
sleep(2)

touch((480,370))
sleep(2)

touch((500,460))
sleep(2)

touch((470,330))
sleep(3)










touch((930,40))
sleep(3)


#2-6
sleep(3)

touch((850,240))
sleep(3)

touch(Template(r"tpl1649133016713.png", record_pos=(0.266, 0.097), resolution=(2340, 1080)))

wait(Template(r"tpl1645755795348.png", record_pos=(-0.129, -0.105), resolution=(2160, 1080)))
touch(Template(r"tpl1645755795348.png", record_pos=(-0.129, -0.105), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645755813389.png", record_pos=(0.332, 0.105), resolution=(2160, 1080)))

wait(Template(r"tpl1645755825541.png", record_pos=(0.405, -0.227), resolution=(2160, 1080)))
touch(Template(r"tpl1645755825541.png", record_pos=(0.405, -0.227), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645755849011.png", record_pos=(0.411, 0.156), resolution=(2160, 1080)))
sleep(3)
if   exists(Template(r"tpl1645772067314.png", record_pos=(0.405, -0.225), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645772067314.png", record_pos=(0.405, -0.225), resolution=(2160, 1080)))

else :

      sleep(1.0)


        
sleep(40)

wait(Template(r"tpl1645755904940.png", record_pos=(0.407, -0.229), resolution=(2160, 1080)),timeout=50)
touch(Template(r"tpl1645755904940.png", record_pos=(0.407, -0.229), resolution=(2160, 1080)))
sleep(8)


if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(1)

if   exists(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080)))

else :

      sleep(1.0)

sleep(1)



touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))

sleep(30)






wait(Template(r"tpl1645755904940.png", record_pos=(0.407, -0.229), resolution=(2160, 1080)),timeout=100)
sleep(3)
touch(Template(r"tpl1645755904940.png", record_pos=(0.407, -0.229), resolution=(2160, 1080)))
sleep(20)



touch((320,490))
sleep(3)

touch((320,490))
sleep(3)

touch(Template(r"tpl1645756072332.png", record_pos=(0.439, -0.225), resolution=(2160, 1080)))
sleep(3)

touch((900,25))
sleep(3)

touch((850,240))
sleep(3)

touch((850,323))
sleep(3)

swipe((620,460), (720,200))
sleep(3)

if   exists(Template(r"tpl1645756368756.png", record_pos=(-0.088, 0.079), resolution=(2160, 1080))):
      
      touch(Template(r"tpl1645756368756.png", record_pos=(-0.088, 0.079), resolution=(2160, 1080)))
else :

      sleep(1.0)


sleep(1.0)

touch(Template(r"tpl1645756463524.png", record_pos=(0.444, -0.221), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1645756470525.png", record_pos=(0.402, 0.007), resolution=(2160, 1080)))
sleep(3)

touch((870,500))
sleep(3)

touch(Template(r"tpl1651465253110.png", record_pos=(-0.225, -0.104), resolution=(960, 540)))
sleep(3)


touch((890,266))
sleep(3)

touch((930,240))
sleep(3)

touch((760,485))
sleep(3)

touch((500,460))
sleep(3)

touch((500,460))
sleep(3)

touch((930,310))
sleep(3)

touch((684,447))
sleep(3)

touch((835,449))
sleep(3)



touch((35,57))
sleep(3)

touch(Template(r"tpl1651465537097.png", record_pos=(-0.443, -0.104), resolution=(960, 540)))
sleep(3)

touch((890,266))
sleep(3)

touch((930,240))
sleep(3)

touch((760,485))
sleep(3)

touch((500,460))
sleep(3)

touch((500,460))
sleep(3)

touch((930,310))
sleep(3)

touch((684,447))
sleep(3)

touch((835,449))
sleep(3)



touch((930,50))
sleep(3)

touch((850,280))
sleep(3)


touch((850,323))
sleep(3)

touch(Template(r"tpl1645756497811.png", record_pos=(0.259, 0.198), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645756503236.png", record_pos=(0.09, 0.081), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645756508140.png", record_pos=(0.003, 0.088), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645756513180.png", record_pos=(0.194, -0.111), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645756521036.png", record_pos=(0.256, 0.2), resolution=(2160, 1080)))
sleep(3)




touch((481,375))
sleep(18)

touch(Template(r"tpl1645884589501.png", record_pos=(-0.002, 0.215), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645756552804.png", record_pos=(-0.05, 0.166), resolution=(2160, 1080)))
sleep(3)

touch((653,147))
sleep(3)

touch(Template(r"tpl1645853533226.png", record_pos=(-0.008, 0.173), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645756614492.png", record_pos=(-0.329, -0.034), resolution=(2160, 1080)))
sleep(3)

touch((653,147))
sleep(3)

touch(Template(r"tpl1645756627932.png", record_pos=(-0.001, 0.172), resolution=(2160, 1080)))
sleep(3)

touch((930,40))
sleep(3)

touch((850,280))
sleep(3)


touch((850,280))
sleep(3)

touch(Template(r"tpl1645764457296.png", record_pos=(0.465, 0.158), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645764470432.png", record_pos=(0.164, -0.013), resolution=(2160, 1080)))
sleep(6)

touch(Template(r"tpl1645756845132.png", record_pos=(0.292, 0.105), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645756851685.png", record_pos=(-0.225, 0.001), resolution=(2160, 1080)))
sleep(4)

touch(Template(r"tpl1645756857484.png", record_pos=(0.413, 0.163), resolution=(2160, 1080)))
sleep(5)

touch(Template(r"tpl1645756867203.png", record_pos=(0.34, 0.081), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645756871611.png", record_pos=(0.412, 0.161), resolution=(2160, 1080)))
sleep(30)

wait(Template(r"tpl1645757023030.png", record_pos=(0.25, 0.017), resolution=(2160, 1080)),timeout=70)
sleep(10)

touch(Template(r"tpl1645756857484.png", record_pos=(0.413, 0.163), resolution=(2160, 1080)))
sleep(5)

touch(Template(r"tpl1645756871611.png", record_pos=(0.412, 0.161), resolution=(2160, 1080)))
sleep(3)

wait(Template(r"tpl1645757145118.png", record_pos=(0.26, 0.012), resolution=(2160, 1080)),timeout=150)
sleep(12)

touch((870,440))
sleep(3)

touch(Template(r"tpl1645756871611.png", record_pos=(0.412, 0.161), resolution=(2160, 1080)))
sleep(60)

wait(Template(r"tpl1645757300172.png", record_pos=(0.44, -0.218), resolution=(2160, 1080)),timeout=150)
sleep(3)

touch(Template(r"tpl1645757300172.png", record_pos=(0.44, -0.218), resolution=(2160, 1080)))
sleep(6)

touch((850,280))
sleep(3)

touch(Template(r"tpl1645795066158.png", record_pos=(0.467, 0.158), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645795079678.png", record_pos=(-0.166, -0.005), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645795087069.png", record_pos=(0.289, 0.106), resolution=(2160, 1080)))
sleep(8)


touch(Template(r"tpl1645854122101.png", record_pos=(0.416, 0.126), resolution=(2160, 1080)))
sleep(20)


wait(Template(r"tpl1645757458019.png", record_pos=(0.004, 0.206), resolution=(2160, 1080)),timeout=200)
sleep(9)

touch((500,460))
sleep(5)



touch(Template(r"tpl1645854122101.png", record_pos=(0.416, 0.126), resolution=(2160, 1080)))
sleep(20)

wait(Template(r"tpl1645757458019.png", record_pos=(0.004, 0.206), resolution=(2160, 1080)),timeout=200)
sleep(9)

touch((500,460))
sleep(5)

touch(Template(r"tpl1645854122101.png", record_pos=(0.416, 0.126), resolution=(2160, 1080)))
sleep(20)

wait(Template(r"tpl1645757458019.png", record_pos=(0.004, 0.206), resolution=(2160, 1080)),timeout=200)
sleep(9)

touch((500,460))
sleep(5)

touch(Template(r"tpl1645854316966.png", record_pos=(0.44, -0.223), resolution=(2160, 1080)))
sleep(3)

touch((850,280))
sleep(3)

touch((784,11))
sleep(3)
touch(Template(r"tpl1645870627361.png", record_pos=(0.092, 0.022), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645870633774.png", record_pos=(0.001, 0.194), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645870645157.png", record_pos=(0.194, -0.155), resolution=(2160, 1080)))
sleep(3)

touch((850,280))
sleep(3)

touch((850,280))
sleep(3)

touch((744,54))
sleep(3)

touch((784,152),duration=0.3,times=50)

if   exists(Template(r"tpl1645852535198.png", record_pos=(-0.001, 0.202), resolution=(2160, 1080))):
    

      touch(Template(r"tpl1645852535198.png", record_pos=(-0.001, 0.202), resolution=(2160, 1080)))
  


 


else :

      sleep(1.0)
        
sleep(3)
               
if   exists(Template(r"tpl1646293430070.png", record_pos=(0.288, 0.051), resolution=(2160, 1080))):
    

      touch(Template(r"tpl1646293430070.png", record_pos=(0.288, 0.051), resolution=(2160, 1080)))

  

else :

      sleep(1.0)        
        
sleep(3)        




touch((744,54))
sleep(3)

touch(Template(r"tpl1649134304141.png", record_pos=(0.358, -0.056), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1645598223678.png", record_pos=(0.295, -0.149), resolution=(2160, 1080)),times=20,duration=1)
touch(Template(r"tpl1645598366238.png", record_pos=(-0.294, -0.062), resolution=(2160, 1080)))

touch(Template(r"tpl1645598223678.png", record_pos=(0.295, -0.149), resolution=(2160, 1080)),times=14,duration=1)
touch(Template(r"tpl1645598344973.png", record_pos=(-0.294, -0.035), resolution=(2160, 1080)))
touch(Template(r"tpl1645598223678.png", record_pos=(0.295, -0.149), resolution=(2160, 1080)),times=16,duration=1)
touch(Template(r"tpl1645598386406.png", record_pos=(-0.293, -0.001), resolution=(2160, 1080)))
touch(Template(r"tpl1645598223678.png", record_pos=(0.295, -0.149), resolution=(2160, 1080)),times=22,duration=1)

touch(Template(r"tpl1645598422861.png", record_pos=(-0.301, 0.055), resolution=(2160, 1080)))
touch(Template(r"tpl1645598223678.png", record_pos=(0.295, -0.149), resolution=(2160, 1080)),times=40,duration=1)

touch(Template(r"tpl1645598579862.png", record_pos=(0.372, -0.208), resolution=(2160, 1080)))
sleep(3)

touch((850,280))
sleep(6)


#25
touch((924,450))
sleep(3)

touch(Template(r"tpl1645795079678.png", record_pos=(-0.166, -0.005), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645795087069.png", record_pos=(0.289, 0.106), resolution=(2160, 1080)))
sleep(8)

touch((875,400))
sleep(20)

wait(Template(r"tpl1645757458019.png", record_pos=(0.004, 0.206), resolution=(2160, 1080)),timeout=200)
sleep(6)

touch((500,460))
sleep(5)




touch((150,215))
sleep(3)

touch((875,400))
sleep(20)

wait(Template(r"tpl1650698702898.png", threshold=0.8, record_pos=(-0.004, 0.219), resolution=(960, 540)),timeout=200)
sleep(16)

touch((500,460))
sleep(6)





touch((161,270))
sleep(3)

touch((875,400))
sleep(20)

wait(Template(r"tpl1650698702898.png", threshold=0.8, record_pos=(-0.004, 0.219), resolution=(960, 540)),timeout=200)
sleep(16)


touch((500,460))
sleep(5)





touch((165,330))
sleep(3)

touch((875,400))
sleep(20)

wait(Template(r"tpl1650698702898.png", threshold=0.8, record_pos=(-0.004, 0.219), resolution=(960, 540)),timeout=200)
sleep(16)

touch((500,460))
sleep(3)





touch((900,50))
sleep(3)



#提升实力




sleep(3)

touch((744,54))
sleep(3)

touch(Template(r"tpl1649134304141.png", record_pos=(0.358, -0.056), resolution=(2340, 1080)))
sleep(3)


touch(Template(r"tpl1650699105921.png", record_pos=(-0.301, -0.007), resolution=(960, 540)))
sleep(1.0)


touch(Template(r"tpl1645598223678.png", record_pos=(0.295, -0.149), resolution=(2160, 1080)),times=20,duration=0.5)
sleep(1.0)

touch(Template(r"tpl1645598579862.png", record_pos=(0.372, -0.208), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1649129503832.png", record_pos=(0.415, 0.201), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649135592341.png", record_pos=(-0.215, 0.033), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649135629089.png", record_pos=(0.358, 0.159), resolution=(2340, 1080)))
sleep(3)


touch((670,220))
sleep(3)

touch(Template(r"tpl1645852364770.png", record_pos=(-0.007, 0.173), resolution=(2160, 1080)))
sleep(3)

touch((150,230))
sleep(3)

touch((660,150))
sleep(3)

touch(Template(r"tpl1649136036406.png", record_pos=(0.0, 0.169), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649136036406.png", record_pos=(0.0, 0.169), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649136068897.png", record_pos=(0.0, 0.179), resolution=(2340, 1080)))
sleep(3)

touch((100,150))
sleep(3)

touch((100,150))
sleep(3)


touch((414,431))
sleep(3)

touch((254,479))
sleep(3)
touch((431,479))
sleep(3)
touch(Template(r"tpl1649136168168.png", record_pos=(-0.024, -0.098), resolution=(2340, 1080)))
sleep(3)   
      
touch(Template(r"tpl1649129952423.png", record_pos=(-0.261, 0.196), resolution=(2340, 1080)))
sleep(3)


touch(Template(r"tpl1649129971311.png", record_pos=(-0.095, 0.194), resolution=(2340, 1080)))
sleep(3)
touch(Template(r"tpl1649127900195.png", record_pos=(-0.434, -0.208), resolution=(2340, 1080)))      
sleep(3)


touch(Template(r"tpl1649127900195.png", record_pos=(-0.434, -0.208), resolution=(2340, 1080)))      
sleep(3)




      
touch(Template(r"tpl1649136436055.png", record_pos=(-0.216, -0.1), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649135629089.png", record_pos=(0.358, 0.159), resolution=(2340, 1080)))
sleep(2)

touch((150,230))
sleep(3)

touch((670,220))
sleep(3)

touch(Template(r"tpl1645852364770.png", record_pos=(-0.007, 0.173), resolution=(2160, 1080)))
sleep(3)

touch((150,230))
sleep(3)

touch((414,431))
sleep(3)

touch((254,479))
sleep(3)
touch((431,479))
sleep(3)


touch(Template(r"tpl1649127900195.png", record_pos=(-0.434, -0.208), resolution=(2340, 1080)))      
sleep(3)

      
touch(Template(r"tpl1649127900195.png", record_pos=(-0.434, -0.208), resolution=(2340, 1080)))      
sleep(3)



touch(Template(r"tpl1650699672442.png", record_pos=(-0.223, -0.105), resolution=(960, 540)))
sleep(3)
      
touch(Template(r"tpl1649135629089.png", record_pos=(0.358, 0.159), resolution=(2340, 1080)))
sleep(2)

touch((150,230))
sleep(3)


touch((670,220))
sleep(3)

touch(Template(r"tpl1645852364770.png", record_pos=(-0.007, 0.173), resolution=(2160, 1080)))
sleep(3)

  
touch((150,230))
sleep(3)

touch((414,431))
sleep(3)

touch((254,479))
sleep(3)
touch((431,479))
sleep(3)

touch(Template(r"tpl1649127900195.png", record_pos=(-0.434, -0.208), resolution=(2340, 1080)))      
sleep(3)
      
touch(Template(r"tpl1649127900195.png", record_pos=(-0.434, -0.208), resolution=(2340, 1080)))      
sleep(3)

touch(Template(r"tpl1649136937240.png", record_pos=(-0.414, -0.102), resolution=(2340, 1080)))
sleep(3)


touch(Template(r"tpl1649135629089.png", record_pos=(0.358, 0.159), resolution=(2340, 1080)))
sleep(3)


touch((150,230))
sleep(3)

touch((670,220))
sleep(3)

touch(Template(r"tpl1645852364770.png", record_pos=(-0.007, 0.173), resolution=(2160, 1080)))
sleep(3)

touch((150,230))
sleep(3)


touch((414,431))
sleep(3)

touch((254,479))
sleep(3)
touch((431,479))
sleep(3)

touch(Template(r"tpl1649127900195.png", record_pos=(-0.434, -0.208), resolution=(2340, 1080)))      
sleep(3)
      
touch(Template(r"tpl1649127900195.png", record_pos=(-0.434, -0.208), resolution=(2340, 1080)))   
sleep(3)

touch(Template(r"tpl1646039661342.png", record_pos=(0.439, -0.222), resolution=(2160, 1080)))
sleep(3)

touch((850,280))
sleep(3)

touch((850,280))
sleep(3)



#3-1



touch((850,240))
sleep(3)

wait(Template(r"tpl1645758003347.png", record_pos=(0.292, 0.104), resolution=(2160, 1080)))

touch(Template(r"tpl1645757997267.png", record_pos=(0.289, 0.104), resolution=(2160, 1080)))
sleep(2)


touch(Template(r"tpl1645758021259.png", record_pos=(0.194, 0.111), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645758030307.png", record_pos=(0.326, 0.112), resolution=(2160, 1080)))
sleep(10)


touch(Template(r"tpl1645758177218.png", record_pos=(0.41, -0.225), resolution=(2160, 1080)))
sleep(5)

touch((860,300))
sleep(3)

touch(Template(r"tpl1645763056473.png", record_pos=(0.004, -0.045), resolution=(2160, 1080)))
sleep(10)


if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(3)

if   exists(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080)))

else :

      sleep(1.0)

sleep(3)

touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))




wait(Template(r"tpl1645758177218.png", record_pos=(0.41, -0.225), resolution=(2160, 1080)),timeout=200)
sleep(3)

touch(Template(r"tpl1645758177218.png", record_pos=(0.41, -0.225), resolution=(2160, 1080)))
sleep(3)

touch((460,295))
sleep(3)

touch((560,350))
sleep(10)




if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(1)

if   exists(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080)))

else :

      sleep(1.0)

sleep(1)



touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))

sleep(6)

wait(Template(r"tpl1645758177218.png", record_pos=(0.41, -0.225), resolution=(2160, 1080)),timeout=200)
sleep(2)

touch(Template(r"tpl1645758177218.png", record_pos=(0.41, -0.225), resolution=(2160, 1080)))

sleep(5)


touch(Template(r"tpl1645763427250.png", record_pos=(0.113, 0.099), resolution=(2160, 1080)))


sleep(3)




#3-2
wait(Template(r"tpl1645758326420.png", record_pos=(-0.034, 0.016), resolution=(2160, 1080)))
touch(Template(r"tpl1645758326420.png", record_pos=(-0.034, 0.016), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645758338243.png", record_pos=(0.329, 0.112), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645758351970.png", record_pos=(0.407, -0.226), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645758365354.png", record_pos=(0.425, 0.03), resolution=(2160, 1080)))
sleep(10)




touch((482,209))
sleep(10)





if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(1)

if   exists(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080)))

else :

      sleep(1.0)

sleep(1)



touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))

sleep(30)



wait(Template(r"tpl1645758177218.png", record_pos=(0.41, -0.225), resolution=(2160, 1080)),timeout=300)
sleep(3)

touch(Template(r"tpl1645758177218.png", record_pos=(0.41, -0.225), resolution=(2160, 1080)))


sleep(3)

touch(Template(r"tpl1645758391290.png", record_pos=(0.413, 0.152), resolution=(2160, 1080)))

if   exists(Template(r"tpl1645772067314.png", record_pos=(0.405, -0.225), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645772067314.png", record_pos=(0.405, -0.225), resolution=(2160, 1080)))

else :

      sleep(1.0)

        
        
sleep(20)
wait(Template(r"tpl1645758177218.png", record_pos=(0.41, -0.225), resolution=(2160, 1080)),timeout=500)
sleep(2)

touch(Template(r"tpl1645758177218.png", record_pos=(0.41, -0.225), resolution=(2160, 1080)))


sleep(5)

touch(Template(r"tpl1645763427250.png", record_pos=(0.113, 0.099), resolution=(2160, 1080)))

sleep(3)


touch(Template(r"tpl1645758612794.png", record_pos=(-0.363, 0.191), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645758618970.png", record_pos=(0.003, 0.199), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645758626290.png", record_pos=(0.439, -0.228), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645758638123.png", record_pos=(0.391, -0.032), resolution=(2160, 1080)))

sleep(3)



touch(Template(r"tpl1645758645827.png", record_pos=(0.404, -0.019), resolution=(2160, 1080)))
sleep(9)

touch(Template(r"tpl1645758659171.png", record_pos=(-0.157, -0.096), resolution=(2160, 1080)))
sleep(5)

touch((530,350))
sleep(6)


touch(Template(r"tpl1645758708682.png", record_pos=(0.408, 0.16), resolution=(2160, 1080)))

sleep(2)

if   exists(Template(r"tpl1645772067314.png", record_pos=(0.405, -0.225), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645772067314.png", record_pos=(0.405, -0.225), resolution=(2160, 1080)))

else :

      sleep(1.0)


sleep(20)



wait(Template(r"tpl1645763546588.png", record_pos=(0.001, 0.217), resolution=(2160, 1080)),timeout=200)
sleep(6)

touch(Template(r"tpl1645758781170.png", record_pos=(-0.011, 0.211), resolution=(2160, 1080)))
sleep(3)


touch((850,280))
sleep(3)


touch((850,240))
sleep(3)

touch((850,240))
sleep(3)

touch((870,500))
sleep(3)
touch(Template(r"tpl1646222584641.png", record_pos=(-0.302, -0.105), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1649135629089.png", record_pos=(0.358, 0.159), resolution=(2340, 1080)))
sleep(3)

touch(Template(r"tpl1649138565555.png", record_pos=(0.194, -0.115), resolution=(2340, 1080)))

sleep(3)

touch(Template(r"tpl1645852364770.png", record_pos=(-0.007, 0.173), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1649129933804.png", record_pos=(-0.062, 0.15), resolution=(2340, 1080)))
sleep(1.0)

touch((254,479))
sleep(3)

touch((431,479))
sleep(3)
      
touch((254,479))
sleep(3)

touch((431,479))
sleep(3)

touch((254,479))
sleep(3)

touch((431,479))
sleep(3)

touch((254,479))
sleep(3)

touch((431,479))
sleep(3)

touch((254,479))
sleep(3)

touch((431,479))
sleep(3)


touch(Template(r"tpl1646039661342.png", record_pos=(0.439, -0.222), resolution=(2160, 1080)))
sleep(3)


touch((850,280))
sleep(3)

if   exists(Template(r"tpl1645852535198.png", record_pos=(-0.001, 0.202), resolution=(2160, 1080))):
    
      touch(Template(r"tpl1645852535198.png", record_pos=(-0.001, 0.202), resolution=(2160, 1080)))
  
else :

      sleep(3)
        
   
sleep(3)

touch((850,280))
sleep(3)

if   exists(Template(r"tpl1645852535198.png", record_pos=(-0.001, 0.202), resolution=(2160, 1080))):
    
      touch(Template(r"tpl1645852535198.png", record_pos=(-0.001, 0.202), resolution=(2160, 1080)))
  
else :

      sleep(3)
        
   
sleep(3)



'''


touch(Template(r"tpl1649126127322.png", record_pos=(0.468, 0.145), resolution=(2340, 1080)))
sleep(3)
touch(Template(r"tpl1649126178574.png", record_pos=(-0.001, -0.008), resolution=(2340, 1080)))

sleep(5)

touch(Template(r"tpl1646038910983.png", record_pos=(0.29, 0.107), resolution=(2160, 1080)))

sleep(10)

#touch(Template(r"tpl1649126222522.png", record_pos=(0.335, -0.109), resolution=(2340, 1080)))

#sleep(3)

touch(Template(r"tpl1649126246104.png", record_pos=(0.124, 0.094), resolution=(2340, 1080)))
sleep(5)


touch((470,384),duration=5)
sleep(3)


touch((500,500),times=200)
sleep(3)


touch((470,384),duration=5)
sleep(3)


touch((500,500),times=200)
sleep(3)

touch(Template(r"tpl1646039560983.png", record_pos=(-0.095, 0.185), resolution=(2160, 1080)))
sleep(3)


touch(Template(r"tpl1646039661342.png", record_pos=(0.439, -0.222), resolution=(2160, 1080)))
sleep(3)

touch((800,265))

sleep(3)

touch((676,505))

y=0
while y<10:
  if   exists(Template(r"tpl1645678487647.png", record_pos=(0.194, -0.066), resolution=(2160, 1080))):
      
        
        touch(Template(r"tpl1645678487647.png", record_pos=(0.194, -0.066), resolution=(2160, 1080)))
        sleep(1.0)


  else :

        sleep(1.0)
        
  y=y+1


sleep(3)

touch(Template(r"tpl1649126881810.png", record_pos=(-0.41, 0.16), resolution=(2340, 1080)))
sleep(3)

touch((632,445),times=100)
sleep(3)

touch(Template(r"tpl1646039661342.png", record_pos=(0.439, -0.222), resolution=(2160, 1080)))
sleep(3)

'''



touch((864,508))

sleep(2)

touch((880,261))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))




sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))




sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))



sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))




sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))





sleep(2)

touch((468,328))

sleep(2)

touch((850,68))

sleep(2)

touch((555,360))

sleep(2)

touch((670,163))

sleep(2)

touch((920,40))

sleep(3)



#升级魂力
touch((864,508))
sleep(2)

touch((880,261))
sleep(2)

touch((930,180))
sleep(2)

touch((760,460))
sleep(2)

touch((480,370))
sleep(2)

touch((500,460))
sleep(2)

touch((470,330))
sleep(2)




touch((760,460))
sleep(2)

touch((480,370))
sleep(2)

touch((500,460))
sleep(2)

touch((470,330))
sleep(2)



touch((760,460))
sleep(2)

touch((480,370))
sleep(2)

touch((500,460))
sleep(2)

touch((470,330))
sleep(2)



touch((760,460))
sleep(2)

touch((480,370))
sleep(2)

touch((500,460))
sleep(2)

touch((470,330))
sleep(2)



touch((760,460))
sleep(2)

touch((480,370))
sleep(2)

touch((500,460))
sleep(2)

touch((470,330))
sleep(2)




touch((760,460))
sleep(2)

touch((480,370))
sleep(2)

touch((500,460))
sleep(3)



touch((930,40))
sleep(3)

touch((850,240))
sleep(3)









touch((850,240))
sleep(3)

wait(Template(r"tpl1645772851890.png", record_pos=(0.289, 0.106), resolution=(2160, 1080)))
touch(Template(r"tpl1645772857074.png", record_pos=(0.287, 0.104), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645772867650.png", record_pos=(-0.322, 0.002), resolution=(2160, 1080)))
sleep(3)
touch(Template(r"tpl1645772873618.png", record_pos=(0.333, 0.109), resolution=(2160, 1080)))
sleep(10)

touch(Template(r"tpl1645772892378.png", record_pos=(0.403, -0.231), resolution=(2160, 1080)))
sleep(3)

if   exists(Template(r"tpl1645605068603.png", record_pos=(-0.012, 0.029), resolution=(2160, 1080))):
      touch(Template(r"tpl1645605068603.png", record_pos=(-0.012, 0.029), resolution=(2160, 1080)))
      touch(Template(r"tpl1645605061052.png", record_pos=(0.09, 0.077), resolution=(2160, 1080)))
        
        
else :

      sleep(1.0)
        

if   exists(Template(r"tpl1645772892378.png", record_pos=(0.403, -0.231), resolution=(2160, 1080))):
      touch(Template(r"tpl1645772892378.png", record_pos=(0.403, -0.231), resolution=(2160, 1080)))
else :

      sleep(1.0)        
        


sleep(3)



sleep(10)


if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(1)

if   exists(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080)))

else :

      sleep(1.0)

sleep(1)



touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))
        
sleep(40)
        
wait(Template(r"tpl1645772892378.png", record_pos=(0.403, -0.231), resolution=(2160, 1080)),timeout=300)

sleep(1.0)

touch(Template(r"tpl1645772892378.png", record_pos=(0.403, -0.231), resolution=(2160, 1080)))
sleep(3)

sleep(10)


if   exists(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540))):
      
        
      touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))

else :

      sleep(1.0)
        
        
sleep(1)

if   exists(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645596242724.png", record_pos=(0.098, 0.088), resolution=(2160, 1080)))

else :

      sleep(1.0)

sleep(1)



touch(Template(r"tpl1650343559285.png", record_pos=(0.404, 0.179), resolution=(960, 540)))
sleep(60)

touch(Template(r"tpl1645772892378.png", record_pos=(0.403, -0.231), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645604597043.png", record_pos=(0.111, 0.098), resolution=(2160, 1080)))
sleep(10)


touch((900,25))
sleep(6)


touch((850,240))
sleep(3)









touch((924,451))
sleep(3)


if   exists(Template(r"tpl1645773225370.png", threshold=0.9000000000000001, record_pos=(0.42, 0.007), resolution=(2160, 1080))):
      
        
      touch(Template(r"tpl1645773225370.png", threshold=0.9000000000000001, record_pos=(0.42, 0.007), resolution=(2160, 1080)))

else :

      sleep(1.0)



touch(Template(r"tpl1645773239476.png", record_pos=(0.323, -0.001), resolution=(2160, 1080)))
sleep(3)



wait(Template(r"tpl1645773265258.png", record_pos=(0.294, 0.103), resolution=(2160, 1080)))

touch(Template(r"tpl1645773265258.png", record_pos=(0.294, 0.103), resolution=(2160, 1080)))

sleep(10)


touch(Template(r"tpl1645773311938.png", record_pos=(-0.006, 0.048), resolution=(2160, 1080)))
sleep(3)

touch(Template(r"tpl1645773318546.png", record_pos=(0.189, 0.187), resolution=(2160, 1080)))
sleep(8)




y=0
while y<1000:
    
    touch((850,240))
    sleep(6)
    
    touch((500,460))
    sleep(1)
    

    if   exists(Template(r"tpl1650349322055.png", threshold=0.9, record_pos=(0.338, 0.115), resolution=(960, 540))):
        touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))
        sleep(1.0)

    else :

        sleep(1.0)
        
        
    
    touch((898,22))
    sleep(1)
    
    if   exists(Template(r"tpl1650981354520.png", threshold=0.9000000000000001, record_pos=(0.401, 0.181), resolution=(960, 540))):
        
        touch(Template(r"tpl1650981354520.png", threshold=0.9000000000000001, record_pos=(0.401, 0.181), resolution=(960, 540)))
        sleep(1.0)

    else :
        sleep(1.0)
        

    
    y=y+1
    
       
